﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Runtime.Serialization;

namespace Server_NhaSach.DataTransferObject
{
    [DataContract]
    public class CTPhanQuyenDTO
    {
        #region "Khai báo các biến"
        private string _maNhom;
        private string _maForm;
        private bool _them;
        private bool _xoa;
        private bool _sua; 
        private bool _toanquyen;
        #endregion

        #region "Khai báo các thuộc tính"
        [DataMember]
        public string MaNhom
        {
            get { return _maNhom; }
            set { _maNhom = value; }
        }
        [DataMember]
        public string MaForm
        {
            get { return _maForm; }
            set { _maForm = value; }
        }
        [DataMember]
        public bool Them
        {
            get { return _them; }
            set { _them = value; }
        }
        [DataMember]
        public bool Xoa
        {
            get { return _xoa; }
            set { _xoa = value; }
        }
        [DataMember]
        public bool Sua
        {
            get { return _sua; }
            set { _sua = value; }
        }
        [DataMember]
        public bool Toanquyen
        {
            get { return _toanquyen; }
            set { _toanquyen = value; }
        }
        #endregion

        #region "Khai báo các contructor"
        public CTPhanQuyenDTO() { }
        public CTPhanQuyenDTO(string manhom, string maform, bool them, bool xoa, bool sua, bool toanquyen)
        {
            MaNhom = manhom;
            MaForm = maform;
            Them = them;
            Xoa = xoa;
            Sua = sua;
            Toanquyen = toanquyen;
        }
        public CTPhanQuyenDTO(CTPhanQuyenDTO PhanQuyen)
        {
            this.MaNhom = PhanQuyen.MaNhom;
            this.MaForm = PhanQuyen.MaForm;
            this.Them = PhanQuyen.Them;
            this.Xoa = PhanQuyen.Xoa;
            this.Sua = PhanQuyen.Sua;
            this.Toanquyen = PhanQuyen.Toanquyen;
        }
        #endregion
    }
}